@extends('common.base-master')

@section('html-head')
    <link href="{{url('css/admin/pagenum.css')}}" rel="stylesheet" />
@endsection

@section('html-body')
<div class="banner_s"><img src="{{asset('Assets/upload/banner_a.jpg')}}" alt=""/></div>
<div class="pst_bg">
	<div class="pst">
    	您当前的位置：
        <span>新闻活动</span>
        @if(!is_null($classifyName))
        <em>></em>
        <span>{{$classifyName}}</span>
        @endif
    </div>
</div>
<div class="scd clearfix">
	<div class="scd_l">
    	<div class="s_name">
        	<img src="{{asset('Assets/images/t6.png')}}" width="138" height="48" alt=""/>
            <i>&nbsp;</i>
        </div>
        <ul class="s_nav">
            @if(count($newsClassifies) > 0)
            @foreach($newsClassifies as $newsClassify)
                <li @if($newsClassify->id == $classifyId)class="now"  @endif><a href="{{route('Home.Index.news')}}?classify_id={{$newsClassify->id}}">{{$newsClassify->name}}</a></li>
            @endforeach
            @endif
        </ul>
    </div>
    <div class="scd_r">
    	<div class="r_name"><span>@if(!is_null($classifyName)){{$classifyName}} @endif</span></div>
        <div class="news">
            <ul class="i_ma clearfix">
            @if(count($news) > 0)
            @foreach($news as $new)
        	<li style="width: 250px;">
                <div class="tu"><a href="{{route('Home.Index.newsDetails')}}?news_id={{$new->id}}&classify_id={{$classifyId}}"><img src="{{$new->thumb_img_url}}" alt="" style="    width: 250px;"/></a></div>
                <div class="title">
                    <p>{{mb_strimwidth($new->title,0,30,'...','utf-8')}}</p>
                </div>
                <div class="des">{{$new->desc}}</div>
                <a href="{{route('Home.Index.newsDetails')}}?news_id={{$new->id}}&classify_id={{$classifyId}}" class="more">+查看详情</a>
                <span style="margin-left: 130px; position: relative ; bottom: 15px;">{{$new->created_at}}</span>
            </li>
            @endforeach
            @endif
            </ul>
            <div class="space_hx">&nbsp;</div>
            <div class="pages">
                <?php echo $news->appends(['classify_id' => $classifyId])->render(); ?>
            </div>
        </div>
    </div>
</div>
@endsection

